Set the actions and suggested_action fields in the GdkDragContext to
authorTor Lillqvist <tml@novell.com>
Fri, 17 Jun 2005 19:41:01 +0000 (19:41 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 17 Jun 2005 19:41:01 +0000 (19:41 +0000)
2005-06-17  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
and suggested_action fields in the GdkDragContext to
GDK_ACTION_COPY. Otherwise apps that check the suggested_action
field, like eog, won't accept dropped files.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/win32/gdkdnd-win32.c

index 36bb8be611d4dcd1470ec7e7e697f6b788b3263f..d76f221fcde6d4013312d7369c1dfe74c4edf206 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-17  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
+       and suggested_action fields in the GdkDragContext to
+       GDK_ACTION_COPY. Otherwise apps that check the suggested_action
+       field, like eog, won't accept dropped files.
+
 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
index 36bb8be611d4dcd1470ec7e7e697f6b788b3263f..d76f221fcde6d4013312d7369c1dfe74c4edf206 100644 (file)
@@ -1,3 +1,10 @@
+2005-06-17  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
+       and suggested_action fields in the GdkDragContext to
+       GDK_ACTION_COPY. Otherwise apps that check the suggested_action
+       field, like eog, won't accept dropped files.
+
 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
index 36bb8be611d4dcd1470ec7e7e697f6b788b3263f..d76f221fcde6d4013312d7369c1dfe74c4edf206 100644 (file)
@@ -1,3 +1,10 @@
+2005-06-17  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
+       and suggested_action fields in the GdkDragContext to
+       GDK_ACTION_COPY. Otherwise apps that check the suggested_action
+       field, like eog, won't accept dropped files.
+
 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
index 1a02193567e8acfa5df95a82dd3cfd67fc762d19..346a894538c7ff1045433a8ee25886d8c197d138 100644 (file)
@@ -978,6 +978,8 @@ gdk_dropfiles_filter (GdkXEvent *xev,
       /* WM_DROPFILES drops are always file names */
       context->targets =
        g_list_append (NULL, GUINT_TO_POINTER (_text_uri_list));
+      context->actions = GDK_ACTION_COPY;
+      context->suggested_action = GDK_ACTION_COPY;
       current_dest_drag = context;
 
       event->dnd.type = GDK_DROP_START;